package com.zretc.demojparedis.dao;


import com.zretc.demojparedis.entity.Users;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.io.Serializable;
import java.util.List;

public interface UsersDao extends JpaRepository<Users,Integer>, JpaSpecificationExecutor<Users>, Serializable {
    //自定义方法来实现

    List<Users> findByUserAddress(String userAddress);


    List<Users> findByUserNameOrUserSex(String userName, String userSex);

    Users findByUserNameAndUserPwd(String userName, String userPwd);
}
